<!DOCTYPE html>
<html>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>数据字典</title>


   <link href="<s:url value="/"/>resources/css/dictionary.css" rel="stylesheet">
   <script src="<s:url value="/"/>resources/js/dictionaryItem.js"></script>
	<!-- <script type="text/javascript">
		$(document).ready(function(){
			alert($("#dictionaryId").val());
		});
	</script> -->
</head>
<body>

<input id="dictionaryId" type="hidden" value="${param.dictId}">

<div class="container-fluid ">
	<div class="row-fluid full-height">
		<form:form id="queryDictItemForm" cssClass="condition form-inline" modelAttribute="dictItem">
			<form:hidden id="dictItemId" path="dictItemId"/>
			<div class="control-group " >	
				<form:label cssClass="control-label" for="dictItemName" path="dictItemName" >条目名称:</form:label>
				<form:input id="dictItemName" path="dictItemName"   />
				
				<form:label cssClass="control-label" for="dictItemCode" path="dictItemCode" >条目编码:</form:label>
				<form:input id="dictItemCode" path="dictItemCode" />&nbsp;&nbsp;&nbsp;&nbsp;
				
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
					<input id="queryBtn" type="button" class="btn btn-primary" onclick="if(queryDict()==false) return false;" value="查询"/>
					<input type="reset" class="btn" value="重置"/>
			</div>
		</form:form>
		
		<div id="dictItemContainer">
			<!-- 新增按钮 -->
			<div class="control-group" >
				<input type="button" class="btn btn-primary " style="width:100px;" value="增加"  onclick="if(showModal()==false) return false;"/>
			</div>
			<!-- 表格位置 -->
		</div>
		
	</div>
</div>
	<div id="operationDictItem" style="display: none;">		
		<img alt="修改" style="cursor: pointer;" onclick="updateDictItem('param:dictItemId')"
			src="<s:url value="/"/>resources/js/jtable/scripts/jtable/themes/lightcolor/edit.png"/>	
	<img alt="删除" style="cursor: pointer;" onclick="deleteDict('param:dictItemId','param:dictItemName');" 
			src="<s:url value="/"/>resources/js/jtable/scripts/jtable/themes/lightcolor/delete.png"/>
	</div>
</body>
</html>
